<template>
    <div class="setPutforward">
        <div class="setPutforwardMoney">
            <p>提现金额</p>
            <div class="jine">
                <span>￥</span>
                <input v-model="money" type="number" @change="tofixed(2)">
                <span style="color:#56ABFF;font-size:13px;float:right;line-height:30px" @click="allMoneyFunc">全部提现</span>
            </div>
        </div>
        <ul class="setPutforwardMsg">
            <li><span>支付宝账号：</span><input v-model="number" type="text"></li>
            <li><span>支付宝昵称：</span><input v-model="name" type="text"></li>
            <li><span>真实姓名：</span><input v-model="username" type="text"></li>
        </ul>
        <div class="setPutforwardPost">
            <button @click="setPutforward">提交申请</button>
            <p>温馨提示：金额满{{limitMoney}}元才能提现</p>
        </div>
        <div class="popover" v-if="isPop">
            <div class="popContent">
                <div>
                <img src="@/images/neitui/success.png" alt="" style="width:50px;margin-top:35px" v-if="isPost=='申请成功'">
                <img src="@/images/neitui/fail.png" alt="" style="width:50px;margin-top:35px" v-else>
                <p style="font-size:18px;color:#666666;margin-top: 5px">{{isPost}}</p>
                </div>         
            </div>
        </div>
    </div>
    
</template>

<script>
import request from '@/request/index.js'

    export default {
        name: "setPutforward",
        components:{
            
        },
        data() {
            return {
                limitMoney:100,
                name:'',
                username:'',
                number:'',
                money:'',
                type:1,
                token:'',
                isPop:false,
                isPost:'',
                code:'',

            };
        },
        props:["data",'allMoney'],
        methods:{
            setPutforward:function(){
                request.setPutforward(this);
            },
            isPopNone:function(){
                this.isPop=false;
            },
            allMoneyFunc:function(){
                this.money=Number(this.allMoney).toFixed(2);
            },
            tofixed(num){
                this.money=Number(this.money).toFixed(2);
            }
        },
        created(){
        
        },
        mounted(){
            this.token=this.$cookie.get('token');
        }
    }
</script>

<style scoped lang="scss">
.setPutforward{
    .setPutforwardMoney{
        padding:4vw;
        background:#ffffff;
        >p{
            font-size:13px;
            line-height: 2em;
            color:#333333;
        }
        .jine{
            font-size:24px;
            color:#333333;
            input{
                border: none;
                outline: none;
                width: 150px;
                line-height: 1em;
            }
            span{
                
            }
        }
    }
    .setPutforwardMsg{
        margin-top:20px;
        background: #ffffff;
        padding:0 4vw;
        color:#333333;
        font-size:15px;
        li{
            // margin-bottom: 20px;
            border-bottom: 1px solid #f5f5f5;
            line-height: 4em;
            input{
                border:none;
                outline: none;
                margin-left: 10px;
                float: right;
                text-align: right;
            }
        }
        li:nth-last-child(){
            border-bottom: none;
        }
    }
    .setPutforwardPost{
        text-align: center;
        margin-top: 30px;
        button{
            width: 75vw;
            background:#55A9FF!important;
            color:#ffffff;
            font-size: 15px;
            height: 40px;
            border:none;
            outline: none;
            border-radius: 8px;
            overflow: hidden;
        }
        p{
            font-size:12px;
            color:#666666;
            line-height: 2em;
        }
    }
    .popover{
        position:fixed;
        top:0px;
        left:0px;
        height:100vh;
        width:100vw;
        background:rgba(0,0,0,.3);
        .popContent{
            position: relative;
            width:280px;
            height:150px;
            margin:0 auto;
            margin-top:200px;
            background:#ffffff;
            text-align: center;
            border-radius: 8px;
            overflow: hidden;
            
        }
    }
        
}

    
</style>
